package org.example.provider;

import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@SpringBootApplication
@DubboComponentScan(basePackages = {"org.example.provider"})
public class ProviderApp {

    public static void main(String[] args) {
        /**
         * 以非web项目启动
         */
        new SpringApplicationBuilder(ProviderApp.class)
                .web(WebApplicationType.NONE)
                .run(args);
    }
}
